<!DOCTYPE>
<html>
<head>
    <title>恒信汽车</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta content="telephone=no" name="format-detection">
    <meta http-equiv="x-rim-auto-match" content="none">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <link type="text/css" rel="stylesheet" href="../css/layout.css">
    <link rel="stylesheet" href="../css/member_management.css">
    <script type="text/javascript">
        /*默认字号调整*/
        (function (doc, win) {
            var docEl = doc.documentElement,
                    resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
                    recalc = function () {
                        var clientWidth = docEl.clientWidth;
                        if(clientWidth > 1080)
                         {
                         clientWidth=1080;
                         docEl.style.fontSize = 67.5 + 'px';
                         }
                        if (!clientWidth) return;
                        docEl.style.fontSize = 20 * (clientWidth / 320) + 'px';
                    };
            recalc();
            if (!doc.addEventListener) return;
            win.addEventListener(resizeEvt, recalc, false);
            doc.addEventListener('DOMContentLoaded', recalc, false);
        })(document, window);

    </script>
    <!-- 头部公用JS -->
    <script src="../js/zepto.js"></script>
    <script src="../js/iscroll.js"></script>
    <script src="../js/global.js"></script>
    <!-- 头部公用JS end -->

    <!-- 本页JS -->
</head>
<body>
    <header class="child-header">
        <strong class="title">会员规则</strong>
        <a href="javascript:;" class="back-btn"><img src="../images/icon-back.png" height="100%"></a>
    </header>

    <div class="member">
        <div class="member-section">
            <h3>会员等级规则</h3>
            <div class="member-list-warp">
                <div class="member-list-title">
                    <span>1、钻石会员</span>
                    <img src="../images/icon-toparrow1.png" alt="">
                </div>
                <div class="list-content-wrap">
                    <div class="member-list-content">
                        <div class="list-content-left">1）申请条件：</div>
                        <div class="list-content-right">年度累计维修结算金额≥20000元</div>
                    </div>
                    <div class="member-list-content">
                        <div class="list-content-left">2）维级条件：</div>
                        <div class="list-content-right">维级条件：一年有效期满后，年度累计维修结算金额≥8000元</div>
                    </div>
                    <div class="member-list-content">
                        <div class="list-content-left">3
                        ）降级条件：</div>
                        <div class="list-content-right">一年有效期满后</div>
                        <div class="list-content-more">
                            <p>1.4000元≤年度累计维修结算金≤8000元，降至金卡会员</p>
                            <p>2.年度累计维修结算金额≤4000元，降至银卡会员。</p>
                        </div>
                    </div>
                </div>

                <div class="member-list-title">
                    <span>2、金卡会员</span>
                    <img src="../images/icon-toparrow1.png" alt="">
                </div>
                <div class="list-content-wrap">
                    <div class="member-list-content">
                        <div class="list-content-left">1）申请条件：</div>
                        <div class="list-content-right">年度累计维修结算金额≥20000元</div>
                    </div>
                    <div class="member-list-content">
                        <div class="list-content-left">2）维级条件：</div>
                        <div class="list-content-right">维级条件：一年有效期满后，年度累计维修结算金额≥8000元</div>
                    </div>
                    <div class="member-list-content">
                        <div class="list-content-left">3
                        ）降级条件：</div>
                        <div class="list-content-right">一年有效期满后</div>
                        <div class="list-content-more">
                            <p>1.4000元≤年度累计维修结算金≤8000元，降至金卡会员</p>
                            <p>2.年度累计维修结算金额≤4000元，降至银卡会员。</p>
                        </div>
                    </div>
                </div>

                <div class="member-list-title">
                    <span>3、银卡会员</span>
                    <img src="../images/icon-toparrow1.png" alt="">
                </div>
                <div class="list-content-wrap">
                    <div class="member-list-content">
                        <div class="list-content-left">1）申请条件：</div>
                        <div class="list-content-right">年度累计维修结算金额≥20000元</div>
                    </div>
                    <div class="member-list-content">
                        <div class="list-content-left">2）维级条件：</div>
                        <div class="list-content-right">维级条件：一年有效期满后，年度累计维修结算金额≥8000元</div>
                    </div>
                    <div class="member-list-content">
                        <div class="list-content-left">3）降级条件：</div>
                        <div class="list-content-right">一年有效期满后</div>
                        <div class="list-content-more">
                            <p>1.4000元≤年度累计维修结算金≤8000元，降至金卡会员</p>
                            <p>2.年度累计维修结算金额≤4000元，降至银卡会员。</p>
                        </div>
                    </div>
                </div>
                
            </div>
        </div>

        <div class="member-section">
            <h3>会员权利</h3>
            <div class="member-list-warp">
                <div class="member-list-title">
                    <span>1、会员积分</span>
                    <img src="../images/icon-toparrow1.png" alt="">
                </div>
                <div class="list-content-wrap">
                    <div class="member-list-content">消费即可按照一定比例积分，积分可以抵扣维修费 、在积分商城兑换礼品。</div>
                </div>
                <div class="member-list-title">
                    <span>2、折扣优惠</span>
                    <img src="../images/icon-toparrow1.png" alt="">
                </div>
                <div class="list-content-wrap">
                    <div class="member-list-content">消费即可按照一定比例积分，积分可以抵扣维修费 、在积分商城兑换礼品。</div>
                </div>
                <div class="member-list-title">
                    <span>3、免费服务</span>
                    <img src="../images/icon-toparrow1.png" alt="">
                </div>
                <div class="list-content-wrap">
                    <div class="member-list-content">消费即可按照一定比例积分，积分可以抵扣维修费 、在积分商城兑换礼品。</div>
                </div>
                <div class="member-list-title">
                    <span>4、生日礼品</span>
                    <img src="../images/icon-toparrow1.png" alt="">
                </div>
                <div class="list-content-wrap">
                    <div class="member-list-content">消费即可按照一定比例积分，积分可以抵扣维修费 、在积分商城兑换礼品。</div>
                </div>
                <div class="member-list-title">
                    <span>5、业务代办</span>
                    <img src="../images/icon-toparrow1.png" alt="">
                </div>
                <div class="list-content-wrap">
                    <div class="member-list-content">消费即可按照一定比例积分，积分可以抵扣维修费 、在积分商城兑换礼品。</div>
                </div>
                <div class="member-list-title">
                    <span>6、应急便利</span>
                    <img src="../images/icon-toparrow1.png" alt="">
                </div>
                <div class="list-content-wrap">
                    <div class="member-list-content">消费即可按照一定比例积分，积分可以抵扣维修费 、在积分商城兑换礼品。</div>
                </div>
                <div class="member-list-title">
                    <span>7、预约快修</span>
                    <img src="../images/icon-toparrow1.png" alt="">
                </div>
                <div class="list-content-wrap">
                    <div class="member-list-content">消费即可按照一定比例积分，积分可以抵扣维修费 、在积分商城兑换礼品。</div>
                </div>
                <div class="member-list-title">
                    <span>8、客户关怀</span>
                    <img src="../images/icon-toparrow1.png" alt="">
                </div>
                <div class="list-content-wrap">
                    <div class="member-list-content">消费即可按照一定比例积分，积分可以抵扣维修费 、在积分商城兑换礼品。</div>
                </div>
                <div class="member-list-title">
                    <span>9、尊享服务</span>
                    <img src="../images/icon-toparrow1.png" alt="">
                </div>
                <div class="list-content-wrap">
                    <div class="member-list-content">消费即可按照一定比例积分，积分可以抵扣维修费 、在积分商城兑换礼品。</div>
                </div>
            </div>
        </div>
    </div>

<script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
<script>
window.onload = function(){
    var aList = document.getElementsByClassName('member-list-title');
    var aMember = document.getElementsByClassName('list-content-wrap');

    // 类jq函数
    function hasClass(elem, cls){
        cls = cls || '';
        if(cls.replace(/\s/g, '').length == 0) return false;
        return new RegExp(' ' + cls + ' ').test(' ' + elem.className + ' ');
    }
    function addClass(elem, cls){
        if(!hasClass(elem, cls)){
            elem.className += ' ' + cls;
        }
    }
    function removeClass(elem, cls){
        if(hasClass(elem, cls)){
            var newClass = ' ' + elem.className.replace(/[\t\r\n]/g, '') + ' ';
            while(newClass.indexOf(' ' + cls + ' ') >= 0){
                newClass = newClass.replace(' ' + cls + ' ', ' ');
            }
            elem.className = newClass.replace(/^\s+|\s+$/g, '');
        }
    }

    for(var i=0;i<aList.length;i++){
        aList[i].index = i;
        aList[i].onclick = function(){
            if(!hasClass(this,'list_show')){
                addClass(this,'list_show')
                console.log(this.index);
                aMember[this.index].style.display = 'block';

            }else{
                removeClass(this,'list_show');
                aMember[this.index].style.display = 'none';
            }
        }
    }
}
// $(function(){
// 	$('.member-list-title').each(function(i,e){
// 		$(this).on('touchstart',function(){
// 			if( !$(this).hasClass('list_show') ){
// 				$(this).next('.list-content-wrap').show();
// 				$(this).addClass('list_show');
// 			} else if($(this).hasClass('list_show')) {
// 				$(this).next('.list-content-wrap').hide();
// 				$(this).removeClass('list_show');
// 			}		
// 		})	
// 	})
// })
</script>

 
</body>
</html>